//
//  GroupTableViewGroup.h
//  etionUI
//
//  Created by wangjian on 8/12/13.
//
//

#import <UIKit/UIKit.h>

#import "GroupTableViewCell.h"

#define GROUP_TABLE_VIEW_ANIMATION_DURATION 0.35

@interface CGroupTableViewGroup : UIView

@property (nonatomic, readonly, retain) UIView *contentView;
@property (nonatomic, assign) CGFloat separatorSize;
@property (nonatomic, retain) UIColor *separatorColor;
@property (nonatomic, retain) NSMutableArray *cells;

- (void)setGroupBackgroundImageWithImage:(UIImage *)image borderEdgeInsets:(UIEdgeInsets)borderEdgeInsets cornerRadius:(CGFloat)cornerRadius;
- (void)setGroupWithCells:(NSMutableArray *)cells;

//返回新的group size
- (CGSize)resizeCells;
- (CGSize)reloadCells:(NSArray *)cells atRows:(NSArray *)rows withRowAnimation:(UITableViewRowAnimation)animation;

- (void)prepareInsertCells:(NSArray *)insertCells atRows:(NSArray *)insertRows withRowAnimation:(UITableViewRowAnimation)animation;
- (void)startInsertAnimation:(UITableViewRowAnimation)animation;
- (void)deleteRows:(NSDictionary *)dicRows withRowAnimation:(UITableViewRowAnimation)animation;
- (void)deleteRowsAnimationComplete:(NSDictionary *)dicRows;

@end
